package com.bskj.common.enums;

/**
 * 无感渠道枚举类
 * 
 * @author lishi
 * @date 2019年1月25日 下午4:30:27
 */
public enum NoSenseChannelTypeEnum {
	WECHAT("WECHAT", "微信无感"),
	CCB("CCB", "建行无感"),
	ALIPAY("ALIPAY", "支付宝无感");
	private String key;
	private String value;

	private NoSenseChannelTypeEnum(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static NoSenseChannelTypeEnum get(String key) {
		for (NoSenseChannelTypeEnum noSenseChannelTypeEnum : NoSenseChannelTypeEnum.values()) {
			if (noSenseChannelTypeEnum.getKey().equals(key)) {
				return noSenseChannelTypeEnum;
			}
		}
		return null;
	}
}
